From: Carlos Garnacho Date: Wed, 5 Nov 2025 11:40:18 +0000 (+0100) Subject: messageList: Use Clutter cursors X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~39^2~1^2~69 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d890f6d28f49906e1224ac70f45c322a2b2cf5f4;p=gnome-shell.git messageList: Use Clutter cursors Set the hand cursor on URLs through ClutterActor API, instead of globally. Part-of: --- diff --git a/js/ui/messageList.js b/js/ui/messageList.js index 509d2e84f..d9b30cf48 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -5,7 +5,6 @@ import Gio from 'gi://Gio'; import GLib from 'gi://GLib'; import GObject from 'gi://GObject'; import Graphene from 'gi://Graphene'; -import Meta from 'gi://Meta'; import Pango from 'gi://Pango'; import Shell from 'gi://Shell'; import St from 'gi://St'; @@ -88,10 +87,10 @@ class URLHighlighter extends St.Label { const urlId = this._findUrlAtPos(...event.get_coords()); if (urlId !== -1 && !this._cursorChanged) { - global.display.set_cursor(Meta.Cursor.POINTER); + this.set_cursor_type(Clutter.CursorType.POINTER); this._cursorChanged = true; } else if (urlId === -1) { - global.display.set_cursor(Meta.Cursor.DEFAULT); + this.set_cursor_type(Clutter.CursorType.DEFAULT); this._cursorChanged = false; } return Clutter.EVENT_PROPAGATE; @@ -103,7 +102,7 @@ class URLHighlighter extends St.Label { if (this._cursorChanged) { this._cursorChanged = false; - global.display.set_cursor(Meta.Cursor.DEFAULT); + this.set_cursor_type(Clutter.CursorType.DEFAULT); } return super.vfunc_leave_event(event); }